home *** CD-ROM | disk | FTP | other *** search
-
- GTXT.DOC v1.1
- (MS-DOS Version)
- 05/08/86
- Eric Gans
- French Department UCLA
- Los Angeles, CA 90024
-
- This is an MS-DOS version of a little CP/M program that makes
- textfiles into COM files to print them on screen with a single command.
-
- GTXT11.COM is an improved version of an old CP/M program called TXT.COM.
- It offers the following features:
-
- - zeroes high bit to read (say) WS doc mode files
- - allows printing of control characters using "^"
- - page breaks can be forced with "~"
- - literals of "^" and "~" can be entered if preceded by "%" ("%%" gives
- "%")
- - Issues a "[More]" every 23 lines for text file longer than 23 lines;
- when you type a character the [More] is blanked out and doesn't
- waste a line on the screen. Type ^C to exit.
-
- GTXT.000 is just GTXT.COM with the 0 (=end) byte missing. It can be used
- like GTXT.COM: you read it into the text file with something like ^KR
- in WS and find some way of putting a binary 0 at the end. But its
- real purpose is for use with GTXT_COM.BAT, which allows you to create
- a COM file from a pre-existing text file with no editing whatsoever.
- GTXT_COM.BAT containsthe following line:
-
- copy gtxt.000+%1.%2+gtxt.dat %1.com
-
- The parameters %1 and %2 are, respectively, the filename and filetype
- of your textfile. They must be separated by a space. GTXT.DAT is a 2-
- byte text file that contains a binary 0 followed by 1AH; the 0 serves to
- mark the end of the read for the COM file you create.
-
- Example: suppose you have a little textfile called BLRK.TXT that you want
- to transform into a COM file. Just enter:
-
- GTXT_COM BLRK TXT
-
- and you will have an executable file BLRK.COM while still retaining
- the original BLRK.TXT.
-
- If you only type in "GTXT_COM" the batch file will prompt you for the file
- name and extension, so you can just call GTXT_COM from a menu if you want
- rather than just from the command line (A>). You can include a directory in
- the file name if you want (e.g., \utility\filename) if GTXT_COM is in a
- different directory. The COM file will be created in the same directory as
- GTXT.
-
- If a file named filename.COM already exists, the GTXT_COM.BAT file will tell
- you and stop execution so you can't accidentally overwrite a file.
-
- All the features of GTXT.COM will be implemented. Just be careful that you
- have no (apparent) control characters in your text. In WS, for instance,
- if you underline with ^PS an ^S will remain in your text and be printed as
- CHR$(19). (If you want to display the characters "^S", enter "%^S".)
-
-